import http from '@/http'
import qs from 'qs'
// 合利宝进件相关

// 获取合利宝进件列表
const hlbAppliesList = (params) => {
    return http.get('v1/channels/hlb/applies', {
        params,
        paramsSerializer: function (params) {
            return qs.stringify(params, { arrayFormat: 'brackets' })
        },
    })
}

// 重新进件
const againApply = (id) => {
    return http.put(`v1/channels/hlb/applies/${id}/againApply`)
}

// 打回商户审核
const rollback = (id) => {
    return http.put(`v1/channels/hlb/applies/${id}/rollback`)
}

// 开通剩余产品
const openAgain = (id) => {
    return http.put(`v1/channels/hlb/applies/${id}/openAgain`)
}


export { hlbAppliesList, againApply, rollback, openAgain }